package com.itlong.cloud.equip.app;

import com.itlong.cloud.enumerate.oldapp.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <desc>
 *     旧版APP_用户通行记录
 * </desc>
 * Created 2017/11/10
 */
@FeignClient(name = "equip-service")
public interface IAppOldDeviceRecordServiceClient {


    /**
     * <desc>
     *     旧版APP_查询通行记录
     * </desc>
     * @param userId 用户的用户ID
     * @param pageNo
     * @param pageSize
     * @param projectId 当前项目编号
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/8
     */
    @RequestMapping(path = "/app/deviceRecord/list",method = RequestMethod.POST)
    Message getDeviceRecord(@RequestParam("userId") String userId,@RequestParam("pageNo") Integer pageNo,@RequestParam("pageSize") Integer pageSize,@RequestParam("projectId") String projectId) throws Exception;

    /**
     * <desc>
     *     旧版APP_上传通行记录
     * </desc>
     * @param userId
     * @param recordJson
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/9
     */
    @RequestMapping(path = "/app/deviceRecord/upload",method = RequestMethod.POST)
    Message deviceRecordUpload(@RequestParam("userId") String userId,@RequestParam("recordJson") String recordJson) throws Exception;



}
